
#ifndef UI_DLGTEXT_H
#define UI_DLGTEXT_H

#include "ui_ui_dlgtext.h"
#include "..\gui_export.h"

class GUI_EXPORT UI_DlgText : public QDialog, public Ui::UI_DlgText
{
    Q_OBJECT

public:
    UI_DlgText(QWidget* parent = 0, const char* name = 0, bool modal = false, Qt::WindowFlags fl = 0);
    ~UI_DlgText();

    virtual int getAlignment();

public slots:
    virtual void updateUniCharComboBox( int );
    virtual void setText( PF_Text & t, bool isNew );
    virtual void updateText();
    virtual void setAlignmentTL();
    virtual void setAlignmentTC();
    virtual void setAlignmentTR();
    virtual void setAlignmentML();
    virtual void setAlignmentMC();
    virtual void setAlignmentMR();
    virtual void setAlignmentBL();
    virtual void setAlignmentBC();
    virtual void setAlignmentBR();
    virtual void setAlignment( int a );
    virtual void setFont( const QString & f );
    virtual void defaultChanged( bool );
    virtual void loadText();
    virtual void load( const QString & fn );
    virtual void saveText();
    virtual void save( const QString & fn );
    virtual void insertSymbol( int );
    virtual void updateUniCharButton( int );
    virtual void insertChar();

protected slots:
    virtual void languageChange();

private:
    bool isNew;
    PF_Text* text;
    PF_Font* font;

    void init();
    void destroy();

};

#endif // QG_DLGTEXT_H
